package com.secsbrain.development.dal.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName(value = "pm_record")
public class Record implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
    
	@TableField(exist = false)
    private String projectNames;
    
	@TableField(exist = false)
    private List<Map<String, Object>> appList;
    
	@TableField(exist = false)
    private List<Map<String, Object>> upstreamAppList;
    
	@TableField(exist = false)
    private String upstreamProjectNames;
    
	@TableField(exist = false)
    private String formatTime;
    
	@TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    @TableField(value = "prj_name")
    private String prjName;

    /**
     * 环境名称
     */
    @TableField(value = "env_name")
    private String envName;

    /**
     * 分支名称
     */
    @TableField(value = "branch_name")
    private String branchName;

    /**
     * 工程ID,多个以逗号分割
     */
    @TableField(value = "project_ids")
    private String projectIds;

    /**
     * 上游工程ID,多个以逗号分割
     */
    @TableField(value = "upstream_project_ids")
    private String upstreamProjectIds;
    
    /**
     * 响应ID
     */
    @TableField(value = "res_id")
    private Integer resId;

    /**
     * 0-正常，1-结项
     */
    private Integer status;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取项目名称
     *
     * @return prj_name - 项目名称
     */
    public String getPrjName() {
        return prjName;
    }

    /**
     * 设置项目名称
     *
     * @param prjName 项目名称
     */
    public void setPrjName(String prjName) {
        this.prjName = prjName == null ? null : prjName.trim();
    }

    /**
     * 获取环境名称
     *
     * @return env_name - 环境名称
     */
    public String getEnvName() {
        return envName;
    }

    /**
     * 设置环境名称
     *
     * @param envName 环境名称
     */
    public void setEnvName(String envName) {
        this.envName = envName == null ? null : envName.trim();
    }

    /**
     * 获取分支名称
     *
     * @return branch_name - 分支名称
     */
    public String getBranchName() {
        return branchName;
    }

    /**
     * 设置分支名称
     *
     * @param branchName 分支名称
     */
    public void setBranchName(String branchName) {
        this.branchName = branchName == null ? null : branchName.trim();
    }

    /**
     * 获取工程ID,多个以逗号分割
     *
     * @return project_ids - 工程ID,多个以逗号分割
     */
    public String getProjectIds() {
        return projectIds;
    }

    /**
     * 设置工程ID,多个以逗号分割
     *
     * @param projectIds 工程ID,多个以逗号分割
     */
    public void setProjectIds(String projectIds) {
        this.projectIds = projectIds == null ? null : projectIds.trim();
    }

    /**
     * 获取上游工程ID,多个以逗号分割
     *
     * @return upstream_project_ids - 上游工程ID,多个以逗号分割
     */
    public String getUpstreamProjectIds() {
        return upstreamProjectIds;
    }

    /**
     * 设置上游工程ID,多个以逗号分割
     *
     * @param upstreamProjectIds 上游工程ID,多个以逗号分割
     */
    public void setUpstreamProjectIds(String upstreamProjectIds) {
        this.upstreamProjectIds = upstreamProjectIds == null ? null : upstreamProjectIds.trim();
    }

    /**
     * 获取0-正常，1-结项
     *
     * @return status - 0-正常，1-结项
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0-正常，1-结项
     *
     * @param status 0-正常，1-结项
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取创建人
     *
     * @return create_user - 创建人
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 设置创建人
     *
     * @param createUser 创建人
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProjectNames() {
        return projectNames;
    }

    public void setProjectNames(String projectNames) {
        this.projectNames = projectNames;
    }

    public String getUpstreamProjectNames() {
        return upstreamProjectNames;
    }

    public void setUpstreamProjectNames(String upstreamProjectNames) {
        this.upstreamProjectNames = upstreamProjectNames;
    }

    public String getFormatTime() {
        return formatTime;
    }

    public void setFormatTime(String formatTime) {
        this.formatTime = formatTime;
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public List<Map<String, Object>> getAppList() {
        return appList;
    }

    public void setAppList(List<Map<String, Object>> appList) {
        this.appList = appList;
    }

    public List<Map<String, Object>> getUpstreamAppList() {
        return upstreamAppList;
    }

    public void setUpstreamAppList(List<Map<String, Object>> upstreamAppList) {
        this.upstreamAppList = upstreamAppList;
    }
    
}